package com.greenhouse.service;

import com.greenhouse.config.Request;
import com.greenhouse.model.Equipment;
import com.greenhouse.request.EquipmentRequest;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface EquipmentService {
    Request<List<EquipmentRequest>> selectEquipment(String name,Integer userId);

    Request<Equipment> addEquipment(String name, Equipment equipment,Integer greenhouoseId);

    Request<String> updateEquipment(String name,Integer id, String equipment);

    Request<String> deleteEquipment(String equipmentTableName, Integer id);

    Request<String> updateEquipmentStatus(String equipmentTableName, Integer id, Integer status);
}
